package com.code.leetcode.utils;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/7/22 10:44
 */
public class Swap {
    public static void swap(int[] nums, int index1, int index2) {
        int x = nums[index1];
        nums[index1] = nums[index2];
        nums[index2] = x;
    }
}
